# coding=utf-8
import requests
import json
import sys
import os

ip = sys.argv[1]
port = sys.argv[2]
accesskey = sys.argv[3]
secretkey = sys.argv[4]
scan_id = sys.argv[5]

header = {'X-ApiKeys': 'accessKey={accesskey};secretKey={secretkey}'.format(accesskey=accesskey, secretkey=secretkey),
          'Content-type': 'application/json',
          'Accept': 'text/plain'}
requests.packages.urllib3.disable_warnings()
api = "https://{ip}:{port}/scans/{scan_id}".format(ip=ip, port=port, scan_id=scan_id)
response = requests.get(api, headers=header,verify=False)
print(response.text)
#data = json.loads(response.text)
#print(data)

